package com.jt.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("orders")
@ApiModel("创建Swagger请求参数")
public class Order {

    @TableId("id")
    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("用户id")
    private String user_id;

    @ApiModelProperty("商品id")
    private String product_id;

    @ApiModelProperty("商品数量")
    private int count;

    @ApiModelProperty("商品价格")
    private BigDecimal money;
}
